﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Sec_scan安全漏洞扫描系统_2._0.HomeForm
{
    public partial class Users : Form
    {
        public Users()
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked == true)
            {
                checkBox2.Checked = false;
            }
        }

        private void checkBox2_CheckedChanged(object sender, EventArgs e)
        {
            if(checkBox2.Checked == true)
            {
                checkBox1.Checked = false;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text))
            {
                MessageBox.Show("账号密码不能为空！");
            }
            else
            {
                // 执行添加账号到数据库
            }
        }
        /// <summary>
        /// 从数据库加载本地的账号
        /// </summary>
        public void LoadUsersInfo()
        {

        }
    }
}
